﻿@model EditorialProyectos.Website.Models.ViewProjectViewModel

@section Scripts{
    @Content.ViewModel("ViewProjectViewModel.js", Url)
    @Content.ViewModel("InvestmentViewModel.js", Url)
    @Content.ViewModel("CommentViewModel.js", Url)
    @Content.ViewModel("BenefitViewModel.js", Url)
    @Content.Css("viewProject.css", Url)

    <script>
        var modelData = '@Html.Raw(Model.ToJson())';
        var modelJSON = JSON.parse(modelData);

        var viewModel = new ViewProjectViewModel(modelJSON);
        ko.applyBindings(viewModel);
    </script>
}

<div class="jumbotron color-white" data-bind="with: viewModel">
    @Html.Partial("MainPartial", Model)
</div>

